' Check to make sure we are not running Windows 3.0
IF IsWindows30 THEN
i% = DoMsgBox("You must be running Windows 3.1 or Windows for Workgroups in order to install AT&T WorldNet Services.", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
END IF
' See if the user is running a version of Win32s less than 1.2
IF IsBadWin32s() THEN
szErrText$ = "Version 1.2 of the AT&T WorldNet Services uses OLE 2.02, which is not compatible with this version of Win32s."
szErrText$ = szErrText + " You must upgrade to Win32s version 1.2 before installing the AT&T WorldNet Services."
szErrText$ = szErrText + Chr$(10) + "For more information, please read the AT&T WorldNet Services Troubleshooting Guide."
' See if an old version of 1.2 PE is installed on the machine
' Check for DIALNDIS.EXE in the CONFIG.SYS file
IF BatchFileLoad("c:\config.sys") THEN
IF BatchFindCmdReference("DIALNDIS.EXE", szBuf$, cb%, 1) THEN
' Prompt the user before doing this
IF DoMsgBox("You must deinstall Netscape Personal Edition version 1.2 before installing this version. Do you want to deinstall now?", "AT&T WorldNet Services", MB_YESNO) = IDNO THEN
BatchFileQuit
END
ELSE
BatchFileQuit
Deinstall12
END IF
ELSE
BatchFileQuit
END IF
ELSE
' Check for DIALNDIS.EXE in SYSTEM.INI
IF BatchFileLoad(MakePath(GetWindowsDir, "SYSTEM.INI")) THEN
IF BatchFindCmdReference("DIALNDIS.EXE", szBuf$, cb%, 1) THEN
i% = DoMsgBox("You must deinstall version 1.2 of Netscape Navigator Personal Edition before installing this software.", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
BatchFileQuit
END
END IF
BatchFileQuit
END IF
END IF
END SUB
'**
'** Purpose:
'** Creates specified news directory
'** Arguments:
'** Path to Netscape INI file and directory to create.